// pages/minix/index.js
let mixin = {
  data() {
    return {
      title: '邻里生活荟',
      // imgUrl: 'http://llcdn.jxsr.com/671ce3db-5555-4be4-a5d5-975dc579af0f8.jpg',
    }
  },
  created() {
    // #ifdef MP-WEIXIN
    wx.showShareMenu({
      withShareTicket: true,
      menus: ['shareAppMessage', 'shareTimeline'],
    })
    // #endif
  },
  onShareAppMessage(res) {
    return {
      title: this.title,
      imageUrl: this.imgUrl,
    }
  },
  onShareTimeline(res) {
    return {
      title: this.title,
      imageUrl: this.imgUrl,
    }
  },
}
export default mixin
